<?php
// +----------------------------------------------------------------------
// | ThinkPHP [ WE CAN DO IT JUST THINK ]
// +----------------------------------------------------------------------
// | Copyright (c) 2006~2018 http://thinkphp.cn All rights reserved.
// +----------------------------------------------------------------------
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------------------
// | Author: liu21st <liu21st@gmail.com>
// +----------------------------------------------------------------------

use think\Route;
Route::any("/article/:id",'index/article/detail');
Route::any("/admin/article/:id/delete",'backend/article/delete');
Route::get("/admin/article/create",'backend/article/create');
Route::post("/admin/article/create",'backend/article/save');
Route::get("/admin/article/:id/edit",'backend/article/edit');
Route::post("/admin/article/:id/edit",'backend/article/update');
Route::any("/admin/article",'backend/article/index');
Route::get("/admin/login",'backend/login/index');
Route::post("/admin/login",'backend/login/login');
Route::any("/admin",'backend/index/index');